import 'package:arco_flutter/arco_flutter.dart';
import 'package:flutter/material.dart';

import 'package:get/get.dart';

import '../controllers/button4_controller.dart';

///按钮尺寸
class Button4View extends GetView<Button4Controller> {
    const Button4View({super.key});
    @override
    Widget build(BuildContext context) {
        return const Scaffold(
            body: Center(
                child: Wrap(
                    spacing: 10,
                    crossAxisAlignment: WrapCrossAlignment.center,
                    children: [
                        AButton(
                            type: AButtonType.primary,
                            size: AButtonSize.mini,
                            child: Text('Mini'),
                        ),
                        AButton(
                            type: AButtonType.primary,
                            size: AButtonSize.small,
                            child: Text('Small'),
                        ),
                        AButton(
                            type: AButtonType.primary,
                            size: AButtonSize.medium,
                            child: Text('Medium'),
                        ),
                        AButton(
                            type: AButtonType.primary,
                            size: AButtonSize.large,
                            child: Text('Large'),
                        ),
                    ],
                ),
            ),
        );
    }
}
